// echart配置面板功能菜单配置
const commonXY = {
  gridFolder: true,
  grid: true,
  splitLine: true,
  markLineArea: true,
  markLine: true,
  markArea: true,
  shapeFolder: true,
  shape: true,
  shapeSetting: false,
  'shape-line-bar': false,
  legendSetting: true,
  'series-label_folder': true,
  'series-label': true,
  'series-bar': false,
  'series-line': false,
  xAxisFolder: true,
  xAxis: true,
  'xAxis-name': true,
  'xAxis-axisLabel': true,
  'xAxis-axisTick': true,
  'xAxis-axisLine': true,
  yAxisFolder: true,
  yAxis: true,
  'yAxis-name': true,
  'yAxis-axisLabel': true,
  'yAxis-axisTick': true,
  'yAxis-axisLine': true,
  dataZoomFolder: true,
  'dataZoom-slider': true,
  'dataZoom-inside': true,
  'shared-action_folder': true,
  'shared-action': true,
};

const commonPie = {
  shapeFolder: true,
  shape: true,
  shapeSetting: true,
  'series-pie': true,
  legendSetting: true,
  'series-label_folder': true,
  'series-label-pie': true,
  'shared-action_folder': true,
  'shared-action': true,
};

export default {
  'uniaxial-line': { ...commonXY, 'series-line': true, shapeSetting: true, 'shape-line-bar': false, debounceSettings: true, noDataPromptSetting: true },
  'biaxial-line-line': { ...commonXY, 'series-line': true, shapeSetting: true, 'shape-line-bar': false, debounceSettings: true, noDataPromptSetting: true },
  'stacked-area': { ...commonXY, debounceSettings: true, noDataPromptSetting: true },
  'uniaxial-bar': { ...commonXY, shapeSetting: true, 'series-bar': true, debounceSettings: true, noDataPromptSetting: true },
  'biaxial-single-line-bar': {
    ...commonXY,
    shapeSetting: true,
    'shape-line-bar': true,
    'series-bar': true,
    'series-line': true,
    debounceSettings: true,
    noDataPromptSetting: true,
  },
  'biaxial-line-bar': {
    ...commonXY,
    shapeSetting: true,
    'shape-line-bar': true,
    'series-bar': true,
    'series-line': true,
    debounceSettings: true,
    noDataPromptSetting: true,
  },
  'basic-pie': {
    ...commonPie,
    legendDisplayType: true,
    debounceSettings: true,
    noDataPromptSetting: true,
  },
  'rose-pie': {
    ...commonPie,
    legendDisplayType: true,
    labelDisplaySetting: true,
    debounceSettings: true,
    noDataPromptSetting: true,
  },
  'multidimensional-pie': {
    ...commonPie,
    legendDisplayType: true,
    debounceSettings: true,
    noDataPromptSetting: true,
  },
  'k-line': {
    ...commonXY,
    markLineArea: false,
    shapeFolder: false,
    'series-label_folder': false,
    'shared-action_folder': false,
    debounceSettings: true,
    noDataPromptSetting: true,
  },
  'ladder-waterfall': { ...commonXY, markLineArea: false, shapeFolder: false, 'series-label_folder': false, debounceSettings: true, noDataPromptSetting: true },
  'shape-chart': { ...commonXY, shapeSetting: true, 'shape-shape': true, markArea: false, debounceSettings: true, noDataPromptSetting: true },
  'gantt-chart': { ...commonXY, markLineArea: false, shapeFolder: false, 'series-label_folder': false, debounceSettings: true, noDataPromptSetting: true },
  'table-gantt-combine': {
    gridFolder: true,
    dataZoomFolder: true,
    'dataZoom-slider': true,
    'dataZoom-inside': true,
  },
  'table-shape-combine': {
    gridFolder: true,
    dataZoomFolder: true,
    shapeSetting: true,
    shapeFolder: true,
    shape: true,
    'shape-shape': true,
    'dataZoom-slider': true,
    'dataZoom-inside': true,
  },
  sankey: {
    gridFolder: true,
    'grid-sankey': true,
    shapeFolder: true,
    'series-label-sankey': true,
    shape: true,
    shapeSetting: true,
    'series-label_folder': true,
    'shape-sankey': true,
    noDataPromptSetting: true,
  },
  scatter: { ...commonXY, debounceSettings: true, noDataPromptSetting: true },
  'relationship-diagram': {
    gridFolder: true,
    shapeFolder: true,
    shape: true,
    shapeSetting: true,
    'shape-line-bar': false,
    legendSetting: false,
    'series-label_folder': true,
    'series-label-tree': true,
    'series-tree': true,
    'grid-relationship': true,
    noDataPromptSetting: true,
  },
  'tree-map': {
    gridFolder: true,
    'grid-treemap': true,
    noDataPromptSetting: true,
  },
  'radar-chart': {
    'series-label_folder': true,
    'series-label-radar': true,
    debounceSettings: true,
    noDataPromptSetting: true,
  },
  'funnel-chart': {
    gridFolder: true,
    grid: true,
    noDataPromptSetting: true,
  },
};
